home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / tip / prhyph.tip < prev    next >
Text File  |  1993-09-15  |  2KB  |  55 lines

  1. % This macro source file is from the four volume series
  2. % "TeX in Practice" by Stephan von Bechtolsheim, published
  3. % 1993 by Springer-Verlag, New York.
  4. % Copyright 1993 Stephan von Bechtolsheim.
  5. % No warranty or liability is assumed.
  6. % This macro may be copied freely if no fees other than
  7. % media cost or shipping charges are charged and as long
  8. % as this copyright and the following source code itself
  9. % is not changed. Please see the series for further information.
  10. %
  11. % Version: 1.0
  12. % Date: May 1, 1993
  13. %
  14. %
  15. % This source code is documented in 12.7.13, p. II-146.
  16. % Original source in file "par3.TEX", starting line 1929.
  17. \wlog{L: "prhyph.tip" ["par3.TEX," l. 1929, p. II-146]}%
  18. % This file DOES belong to format "texip."
  19. \InputD{shboxes.tip}
  20. \def\PrintHyphens #1{%
  21.     {%
  22.         \setbox 0 = \vbox{%
  23.             \pretolerance = -1
  24.             \hyphenpenalty = -10000
  25.             \hsize = 0pt
  26.             \leftskip = 0pt
  27.             \rightskip = 0pt
  28.             \parfillskip = 0pt
  29.             \parindent = 0pt
  30.             \hfuzz = \maxdimen
  31.             \interlinepenalty = 0
  32.             \clubpenalty = 0
  33.             \widowpenalty = 0
  34.             \brokenpenalty = 0
  35.             \hskip 0pt
  36.             #1
  37.         }% 
  38.         \setbox2 = \hbox{}%
  39.         \setbox 9 = \vbox{% 
  40.             \unvbox 0
  41.             \loop
  42.                 \unskip
  43.                 \setbox 1 = \lastbox
  44.                 \ifhbox 1
  45.                     \global\setbox 2 = \hbox{% 
  46.                         \unhbox 1
  47.                         \discretionary{}{}{}% 
  48.                         \unhbox 2
  49.                     }% 
  50.             \repeat
  51.         }%
  52.         \unhbox 2
  53.     }%
  54. }
  55.